UTEP Computer Science Technical Report UTEP-CS-09-12 Experiments in teaching an engaging and demystifying introduction to algorithms Installment 1: Huffman Codes
نویسندگان
چکیده
As is well known, Huffman’s algorithm is a remarkably simple, and wonderfully illustrative example of how to use the greedy method to design algorithms. However, the Huffman coding problem, which is to find an optimal binary character code (or an optimal binary tree with weighted leaves) is intrinsically technical, and its specification is ill-suited for students with modest mathematical sophistication. This difficulty is circumvented by introducing an alternative precursor problem that is very easy to understand, and where this understanding enables students to use the greedy method to find the solution themselves. The problem is how to merge k sorted lists of varying lengths as efficiently as possible. Once students have solved it, they are better prepared to understand the Huffman coding problem, and why it reduces trivially to the list merging problem they just solved. Even the correctness argument is simplified by this approach.
منابع مشابه
Estimating Quality of Support Vector Machines Learning under Probabilistic and Interval Uncertainty: Algorithms and Computational Complexity
Follow this and additional works at: http://digitalcommons.utep.edu/cs_techrep Part of the Computer Engineering Commons Comments: Technical Report: UTEP-CS-07-54 Published in: Van-Nam Huynh, Yoshiteru Nakamori, Hiroakira Ono, Jonathan Lawry, Vladik Kreinovich, and Hung T. Nguyen (eds.), Interval/Probabilistic Uncertainty and Non-Classical Logics, Springer-Verlag, Berlin-Heidelberg-New York, 200...
متن کاملWhy clustering in function approximation? Theoretical explanation
Follow this and additional works at: http://digitalcommons.utep.edu/cs_techrep Part of the Computer Engineering Commons Comments: UTEP-CS-99-3. Preliminary version published by The Chinese University of Hong Kong, Department of Mechanical and Automation Engineering, as Technical Report CUHK-MAE-99-001, January 1999; full version published in International Journal of Intelligent Systems, 2000, V...
متن کاملFrom Theory to Practice the Utep Robot in the Aaai 96 and Aaai 97 Robot Contests
In this paper 1 we describe the control aspects of Diablo, the UTEP mobile robot participant in two AAAI robot competitions. In the rst competition, event one of the AAAI 96 robot contest, Diablo consistently scored 285 2 out of a total of 295 points. In the second competition, our robot won the rst place in the event \Tidy Up" of the home vacuum contest. The main goal in this paper will be to ...
متن کاملDevelopment of the Utep E85-fueled Vehicle
UTEP has developed a dedicated E85 vehicle with superior emissions and cold starting characteristics when compared to the original gasoline vehicle, and with no apparent differences in performance and driveability. All fuel system components that were not E85 compatible have been replaced or modified. Cold start characteristics are improved by incorporating a high frequency multiple spark ignit...
متن کاملAligning Border Security Workflow and Decision Making with Supporting Information and Communication Systems
As part of the National Center for Border Security and Immigration (NCBSI) led by the University of Texas at El Paso (UTEP), researchers from the University of Washington, Wayne State University, and UTEP conducted a three-site study of border security operations and the role of command, control and communication (C3) systems in support of those operations. While inevitably bringing some positi...
متن کامل